# 找出1~100，既不能被2整除，又不能被3整除的数,放到列表里面
list1 = []
for i in range(101):
    if ((i % 2) != 0) and ((i % 3) != 0):
        list1.append(i)

list2 = [j for j in range(101) if ((j % 2) != 0) and ((j % 3) != 0)]
print(list1)
print(list2)